<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateIntegralDataTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('integral_data', function(Blueprint $table) {
            $table->increments('id')->comment('自增id');
            $table->string('url')->nullable()->comment('链接');
            $table->string('key')->nullable()->comment('二维码值');
            $table->integer('integral')->defualt(0)->comment('积分');
            $table->string('remark')->nullable()->comment('备注');
            $table->softDeletes();
            $table->timestamps();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
